package system

import (
	"mime/multipart"
	"wave-admin/utils/upload"
)

type AttachService struct{}

func (attachService *AttachService) UploadFile(header *multipart.FileHeader) ([]string, error) {
	oss := upload.NewOss()
	urls, _, uploadErr := oss.UploadFile(header)
	if uploadErr != nil {
		return urls, uploadErr
	}

	return urls, uploadErr
}